package com.py.apis.wemedia;

import com.py.model.common.dtos.ResponseResult;
import com.py.model.wemedia.dtos.SensitiveDto;
import com.py.model.wemedia.pojos.WmSensitive;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(value = "leadnews-wemedia")
public interface ISensitiveClient {


    @DeleteMapping("/api/v1/sensitive/del/{id}")
    public ResponseResult deleteSensitive(@PathVariable("id") Integer id);

    @PostMapping("/api/v1/sensitive/list")
    public ResponseResult listForSensitive(@RequestBody SensitiveDto dto);

    @PostMapping("/api/v1/sensitive/save")
    public ResponseResult saveSensitive(@RequestBody WmSensitive sensitive);

    @PostMapping("/api/v1/sensitive/update")
    public ResponseResult updateSensitive(@RequestBody WmSensitive sensitive);

}
